﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    DiscMaster
</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Welcome</h1>
    <h2>DiscMaster - MVC 2 edition <sup>version 1.0 alpha</sup></h2>
    <p>
        currently there are:
        <ul>
            <li>
                <%= new DiscMaster.Web.Models.DiscMasterRepository().FindAllPlayers().Count().ToString("N0")%> registered players
            </li>
            <li>
                <%= new DiscMaster.Web.Models.DiscMasterRepository().FindAllCourses().Count().ToString("N0")%> registered courses with a total of <%= new DiscMaster.Web.Models.DiscMasterRepository().FindAllHoles().Count().ToString("N0")%> holes over <%= new DiscMaster.Web.Models.DiscMasterDataContext().CourseLayouts.Count().ToString("N0")%> course layouts
            </li>
            <li>
                <%= new DiscMaster.Web.Models.DiscMasterRepository().FindAllMatches().Count().ToString("N0")%> registered matches
            </li>
            <li>
                <%= new DiscMaster.Web.Models.DiscMasterRepository().FindAllMatchResults().Count().ToString("N0")%> registered matchresults
            </li>
        </ul>
    </p>
    <h1>Why should you sign up?</h1>
    <p>
        it's fast, easy, free and you get access to a variety of features such as:
    </p>
    <div style="float: left; width: 220px; padding-right: 10px;">
        <h3>Personal player profile</h3>
        <p>
            <a target="_blank" href="/Image.ashx?src=/Content/Media/Screenshots/playerdetails.png"><img border="0" src="/Image.ashx?src=/Content/Media/Screenshots/playerdetails.png&width=200" style="float: left; padding-right: 10px; padding-bottom: 10px;" /></a>
        </p>
    </div>
    <div style="float: left; width: 220px; padding-right: 10px;">
        <h3>Match results</h3>
        <p>
            <a target="_blank" href="/Image.ashx?src=/Content/Media/Screenshots/matchresults.png"><img border="0" src="/Image.ashx?src=/Content/Media/Screenshots/matchresults.png&width=200" style="float: left; padding-right: 10px; padding-bottom: 10px;" /></a>
        </p>
    </div>
    <div style="float: left; width: 220px; padding-right: 10px;">
        <h3>Match statistics</h3>
        <p>
            <a target="_blank" href="/Image.ashx?src=/Content/Media/Screenshots/statistics.png"><img border="0" src="/Image.ashx?src=/Content/Media/Screenshots/statistics.png&width=200" style="float: left; padding-right: 10px; padding-bottom: 10px;" /></a>
        </p>
    </div>
        
    <br style="clear: both;" />
</asp:Content>
